import { Ref } from 'vue'
import { userInfo } from '~/types/user'
import { userInfoModel } from '@/api/model/userModel'
import { useUser } from '@/store/modules/user'

export default function getUserInfo() {
  const { userInfo } = storeToRefs(useUser())

  return {
    userInfo
  } as { userInfo: Ref<userInfo<userInfoModel>> }
}
